<form action="{:U('Common/addCommon')}" method="post" class="form-horizontal">
    <div class="form-item">
        <label class="item-label">颜色名称<span class="check-tips">（多个请用英文状态下的","隔开）</span></label>
        <div class="controls">
            <input type="text" class="text input-large" name="name" value="{$data.name|default=''}">
        </div>
    </div>
    
    <div class="form-item">
        <label class="item-label">内容<span class="check-tips">（多张图片请用英文状态下的","隔开）</span></label>
        <div class="controls">
            <label class="textarea">
                <textarea name="images">{$data.images}</textarea>
                {:hook('adminArticleEdit', array('name'=>'images','value'=>$data['images']))}
            </label>
        </div>
    </div>
    <div class="form-item">
        <input type="hidden" name="table" value="color">
        <input type="hidden" name="methods" value="current">
        <input type="hidden" name="gid" value="{$id|default=0}">
        <input type="hidden" name="fields" value="name,text;images,text;gid,text">
        <input type="hidden" name="id" value="{$data.id|default=0}">
        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
    </div>
</form>

